<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一题</title>
</head>
<body>

    <span id="time">5</span>秒之后跳转到官网首页


    <script>
      setTimeout(() => {
        location.href= "https://www.baidu.com/";
      }, 5000);
          
    </script>
    
</body>
</html>